project(Gb28181)

#common
file(GLOB DIR_SRCS ${CMAKE_CURRENT_LIST_DIR}/*.h
						 ${CMAKE_CURRENT_LIST_DIR}/*.cpp
						 ${CMAKE_CURRENT_LIST_DIR}/../Common/*.h
						 ${CMAKE_CURRENT_LIST_DIR}/../Common/*.cpp
						 ${CMAKE_CURRENT_LIST_DIR}/exosip_core/*.cpp
						 ${CMAKE_CURRENT_LIST_DIR}/exosip_core/*.cpp)
include_directories(../Common)
include_directories(exosip_core)
				 
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -D_CRTDBG_MAP_ALLOC -D__STDC_LIMIT_MACROS)

list(APPEND LIBS ws2_32 eXosip osip2 osipparser2)
link_directories(${CMAKE_CURRENT_LIST_DIR}/../lib)
include_directories(../include)

link_libraries(${LIBS})
#添加宏定义

add_library(Gb ${DIR_SRCS})

